<template>
  <div class="box2">
    <img :src="obj.img">
  
  <span class="isRed">¥{{ obj.price }}</span>
  
  <span>{{ obj.name }}</span>   
  </div>
</template>

<script>
export default {
    data(){
        return{
           obj:{
            img: require('@/assets/rog.jpg'),
            price: 8899.00 ,
            name: 'ROG魔霸7 Plus 17.3英寸 电竞游戏笔记本',
           }
          
        }
    }
}
</script>

<style scoped>

.box2{
  display: flex;
  flex-direction: column;
  margin: 0 20px 20px 0;
}
img{
  width: 300px;
  height: 300px;
}
.isRed{
    color: red;
    font-size: 15px;
}
</style>